package org.ifg.bn.service.impl;

import org.ifg.bn.dao.UserDAO;
import org.ifg.bn.dto.User;
import org.ifg.bn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDAO userDAO;
	
	
	public User login(User user) {
		user.setPassword(user.getPassword());
		User resUser = userDAO.findUser(user);
		return resUser;
	}

}
